name = 'Andy'
login_time = 10
cost = 258.8890
# print('你好'+name+',欢迎登录！这是您登录的第',login_time,'次',sep='')
# print('你好%s,欢迎登录！这是您登录的第%d次。您本次消费%.2f元' % (name,login_time,cost))
# print('你好{name},欢迎登录！这是您登录的第{log}次。您本次消费{cost:.2f}元。恭喜{name}成为VIP'.format(name=name,log=login_time,cost=cost))
print(f'你好{name},欢迎登录！这是您登录的第{login_time}次。您本次消费{cost:.2f}元。恭喜{name}成为VIP')
